package com.paiai.lslease.service.apphouse;

import com.paiai.lslease.auto.model.AppSocket;

import java.util.List;

public interface AppSocketService {

    /**
     * 添加一个插座
     */
    AppSocket insertSocket(AppSocket appSocket) throws Exception;

    /**
     * 删除一个插座
     */
    boolean deleteSocket(int socketId) throws Exception;

    /**
     * 修改插座信息
     */
    AppSocket modifySocket(AppSocket appSocket) throws Exception;

    /**
     * 查询房源下的所有插座
     */
    List<AppSocket> selectAllSocket(int operateUserId) throws Exception;

    /**
     * 查询某一个插座
     */
    AppSocket selectSocket(int socketId) throws Exception;

    /**
     * 检测插座是否存在
     */
    boolean checkSocketExist(int socketId) throws Exception;
}
